package com.cr.api.vo;

import com.cr.business.domain.CrDebtTransaction;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 债权交易对象 cr_debt_transaction
 *
 * @author ruoyi
 * @date 2021-10-14
 */
@Data
@ApiModel("债券转让对象")
public class MiniDebtTransactionVo
{
    private List<CrDebtTransaction.AddDebtor> debtorList;
    /** 交易id */
    @ApiModelProperty("交易id")
    private Long transactionId;

    /** 债权人姓名 */
    @ApiModelProperty("债权人姓名")
    private String creditorName;

    /** 债权金额 */
    @ApiModelProperty("债权金额")
    private BigDecimal debtAmount;

    /** 转让金额 */
    @ApiModelProperty("转让金额")
    private BigDecimal transferAmount;

    /** 债券编码 */
    @ApiModelProperty("债券编码")
    private String bondCode;

    /** 详细地址 */
    @ApiModelProperty("详细地址")
    private String address;


    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    public static class AddDebtor{
        private String name;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getIdNum() {
            return idNum;
        }

        public void setIdNum(String idNum) {
            this.idNum = idNum;
        }

        public String getIdValidDate() {
            return idValidDate;
        }

        public void setIdValidDate(String idValidDate) {
            this.idValidDate = idValidDate;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        /*身份证或社会统一信用代码*/
        private String idNum;
        private String idValidDate;
        private String address;
    }

}